//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.alibaba.datax.plugin.writer.influxdbwriter;

import com.alibaba.datax.common.spi.ErrorCode;

public enum InfluxDBWriterErrorCode implements ErrorCode {
    REQUIRED_VALUE("InfluxDBWriter-00", "Missing the necessary value"),
    ILLEGAL_VALUE("InfluxDBWriter-01", "Illegal value"),
    RUNTIME_EXCEPTION("InfluxDBWriter-02", "Runtime exception"),
    RETRY_WRITER_EXCEPTION("InfluxDBWriter-03", "After repeated attempts, the write still fails");

    private final String code;
    private final String description;

    private InfluxDBWriterErrorCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return this.code;
    }

    public String getDescription() {
        return this.description;
    }

    public String toString() {
        return String.format("Code:[%s], Description:[%s]. ", this.code, this.description);
    }
}
